home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Sample1 / Sources / Include / SamplePrt.h < prev    next >
Encoding:
Text File  |  1995-10-11  |  1.5 KB  |  56 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef SAMPLEPRT_H
  5. #define SAMPLEPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _SAMPLEDEF_
  9. #include "SampleDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. #ifndef FWBNDSTR_H
  23. #include <FWBndStr.h>        // FW_CString
  24. #endif
  25.  
  26. //=======================================================================
  27. class FW_CLASS_ATTR FW_CPart;
  28. class FW_CLASS_ATTR FW_CString;
  29. class FW_CLASS_ATTR FW_CMenuBar;
  30. class FW_CLASS_ATTR FW_CMenuEvent;
  31. class FW_CLASS_ATTR FW_CPresentation;
  32.  
  33. //=======================================================================
  34. #ifdef FW_BUILD_WIN16
  35. extern HANDLE far gWinInstance;        // Initialized by LibMain
  36. #endif
  37.  
  38. //=======================================================================
  39. class FW_CLASS_ATTR CSamplePart : public FW_CPart {
  40. public:
  41.                         CSamplePart(ODPart* odPart);
  42.     virtual             ~CSamplePart();
  43.     static const ODValueType     kPartKind;
  44.     static const ODValueType     kPartUserName;
  45. // overrides
  46. protected:
  47.     virtual void         Initialize(Environment* ev);
  48.     virtual FW_CFrame*    NewFrame(Environment* ev,
  49.                                  ODFrame* odFrame,
  50.                                  FW_CPresentation* presentation,
  51.                                  FW_Boolean fromStorage);
  52. };
  53.  
  54. //=======================================================================
  55. #endif
  56.